#PLATFORM需要从cmake传进来
AUX_SOURCE_DIRECTORY(. SRCDIR)
INCLUDE_DIRECTORIES(. ../dep/openssl-${PLATFORM}/${SUBPLATFORM}/include)
INCLUDE_DIRECTORIES(. ../dep/libevent-${PLATFORM}/${SUBPLATFORM}/include)
INCLUDE_DIRECTORIES(. ../dep/zlib-${PLATFORM}/${SUBPLATFORM}/include)
ADD_LIBRARY(locketcipher STATIC ${SRCDIR}) 

INSTALL(TARGETS locketcipher ARCHIVE DESTINATION lib/${SUBPLATFORM})
INSTALL(FILES locketcipher.h locketaes.h locketrsa.h lockethmac.h locketdigest.h locketdef.h locketerrno.h locketfilecrypt.h locketstreamcrypt.h locketconvert.h lockethttpagent.h DESTINATION include)
